<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>java script</title>
    </head>
    <!--直接寫入 HTML 输出流-->
    <body>
        <script>
            document.write("<h1>標題</h1>");
            document.write("<p>段落</p>");
        </script>
    </body>
</html>